<%@ include file="/WEB-INF/jsp/header.jsp" %>

<h1>Galerie</h1>

<form:form method="post" action="gallery_cat">
      <table>
          <tr>
              <td>Name:</td>
              <td><form:input path="name" /></td>
          </tr>
          <tr>
              <td colspan="2">
                  <input type="submit" value="Dodaj"  />
              </td>
          </tr>
      </table>
  </form:form>

 	<table>
		<c:forEach var="galleryCat" items="${galleryCatList}">
			<tr>
				<td><a href="gallery/${galleryCat.id}">${galleryCat.name}</a></td>
			</tr>
		</c:forEach>
	</table>

<%@ include file="/WEB-INF/jsp/footer.jsp" %>
